<?php

class Application_Model_DbTable_Animal extends Zend_Db_Table_Abstract
{
    protected $_name = 'animal';
    protected $_primary = 'id';

    protected $_referenceMap = array(
        'Shelter' => array(
            'columns'        => array('shelterId'),
            'refTableClass'  => 'Shelter',
            'refColumns'     => array('id')
        ),
        'Species' => array(
            'columns'        => array('speciesId'),
            'refTableClass'  => 'Species',
            'refColumns'     => array('id')
        ),
        'Breed' => array(
            'columns'        => array('breedId'),
            'refTableClass'  => 'Breed',
            'refColumns'     => array('id')
        ),
        'Breed2' => array(
            'columns'        => array('breed2Id'),
            'refTableClass'  => 'Breed',
            'refColumns'     => array('id')
        ),
        'BaseColor' => array(
            'columns'        => array('baseColorId'),
            'refTableClass'  => 'Breed',
            'refColumns'     => array('id')
        ),
    );
    
    protected $_dependentTables = array('Picture');
}

